/**************************************************
 * 初始化jiess对象
 **************************************************/
import Vue from 'vue'
import mapping from './base/mapping'
import httpResponse from './base/http'

import main from './main'
import resourceTan from './resource/cnfTan'
import resourceTable from './resource/cnfTable'
import resourceTemplate from './resource/cnfTemplate'

const components = {}
const jiess = { resourceTemplate, resourceTable, resourceTan, mapping, components }

Vue.prototype.$mapping = mapping
Vue.prototype.$jiess = jiess
Vue.use(main, jiess)
/**************************************************
 * 挂载工具函数
 **************************************************/
import { initUtils, tools } from '@jiess/utils'
Vue.prototype.httpBack = httpResponse(tools)
initUtils(jiess)

export default jiess
